<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<c-rt:set scope="request" var="theForm" value="theForm"/>
<c-rt:if test="${! empty param.theForm }">
	<c-rt:set scope="request" var="theForm" value="${param.theForm}"/>
</c-rt:if>
<c-rt:if test="${!empty param.parentId }">
<c-rt:set var="params" value="${pu:addToList('paras', param.parentId)}"/>
<c-rt:set var="cqts" value="${pu:queryByHql('from CommonQuestionType where parent.id=?', params, null)}"/>
</c-rt:if>
<script>
$(function(){
	$('#cqtL3${param.zonePostfix}').change(function(){
		var form;
		doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=mustInquireZone&cqtId='+document.${theForm}.commonQuestionType.value+'&workFlowNodeId=${param.workFlowNodeId}&allowBackward=${param.allowBackward}&parentWorkOrderNodeId=${param.parentWorkOrderNodeId}&theForm=${theForm}', 'mustInquireZone${param.zonePostfix}',form , function(){
		doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=forwardOrderZone&cqtId='+document.${theForm}.commonQuestionType.value+'&workFlowNodeId=${param.workFlowNodeId}&allowBackward=${param.allowBackward}&parentWorkOrderNodeId=${param.parentWorkOrderNodeId}&theForm=${theForm}', 'forwardOrderZone${param.zonePostfix}');
		});
	});
});

</script>
<select name="commonQuestionType" id="cqtL3${param.zonePostfix}">
	<option value="">请选择</option>
	<c-rt:forEach items="${cqts}" var="cqt">
		<option value="${cqt.id }" <c-rt:if test="${cqt.id==param.commonQuestionType }">selected="selected"</c-rt:if>>${cqt.name }</option>
	</c-rt:forEach>
</select>